import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
 
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import {toLine} from '@/utils/main'

import components from '@/components/library/index'
import './mock'

const app = createApp(App)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(`el-icon-${toLine(key)}`, component)
}

app.use(ElementPlus)
app.use(components)
app.use(router).mount('#app')
